package views
{
	import assists.resource.ResourceLoaderData;
	
	import inerface.IPhotoRead;
	
	import main.ViewSubBase;
	
	import panel.viewSpots.PhotoRead;
	
	public class PhotoReadView extends ViewSubBase
	{
		private var _panel:IPhotoRead;
		public function PhotoReadView()
		{
			super();
		}
		
		override public function show():void
		{
			this.resourceLoader.load(
				[
				new ResourceLoaderData("assets/viewSpot/photoRead/heart.png"),
				new ResourceLoaderData("assets/viewSpot/photoRead/download.png")
			],new Function(),render);
		}
		
		override protected function render():void
		{
			_panel = new PhotoRead();
			_panel.init(layout.stage,resourceLoader,lang);
			addView(_panel);
		}
		
		override public function clear():void
		{
			_panel.clear();
		}
		
	}
}